package com.kcwx.system.dtomap;

import org.mapstruct.*;
import com.kcwx.shareddomain.system.dto.SysDeptEditDto;
import com.kcwx.common.core.domain.entity.SysDept;

/**
 * 部门 mapstruct
 *
 */
@Mapper(componentModel = "spring",unmappedSourcePolicy= ReportingPolicy.IGNORE,nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface SysDeptMap {
    /** addDto to Entity*/
    @Mappings({@Mapping(target = "id", ignore = true)})
    SysDept AddDtoToEntity(SysDeptEditDto addDto);
    /** editDto to Entity*/
    SysDept EditDtoToEntity(SysDeptEditDto editDto);
}
